package org.cresource.org.domain;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.cresource.basic.domain.BaseDomain;

import java.util.ArrayList;
import java.util.List;

@Data
public class Department extends BaseDomain {
   //部门编号
   private String  sn;
   private String  name;
   //部门层级
   @ApiModelProperty(value = "部门层级关系",name = "部门层级")
   private String  dirPath;
   private Integer  state;
   private Long  manager_id;
   //通过对象引用表名关系
   private Employee manager;

   private Long  parent_id;
   private Department parent;

   List<Employee> children = new ArrayList<>();

}
